import Vue from 'vue';
import Router from 'vue-router';

/* eslint-disable */
// last param for chunk name
const Index = r => require.ensure([], () => r(require('../pages/Index.vue')), 'index');
const myDevice = r => require.ensure([], () => r(require('../pages/myDevice.vue')), 'myDevice');
const deBug = r => require.ensure([], () => r(require('../pages/deBug.vue')), 'deBug');
const shopCenter = r => require.ensure([], () => r(require('../pages/shopCenter.vue')), 'shopCenter');
const shopList = r => require.ensure([], () => r(require('../pages/shoplist.vue')), 'shoplist');
// import shopList from '../pages/shopList'
const getMoney = r => require.ensure([], () => r(require('../pages/getMoney.vue')), 'getMoney');
/* eslint-enable */

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: Index,
    },
    {
      path: '/mydevice',
      name: 'mydevice',
      component: myDevice,
    },
    {
      path: '/shopcenter',
      name: 'shopcenter',
      component: shopCenter,
    },
    {
      path: '/shoplist',
      name: 'shoplist',
      component: shopList,
    },
    {
      path: '/getmoney',
      name: 'getmoney',
      component: getMoney,
    },
    {
      path: '/debug',
      name: 'deBug',
      component: deBug,
    },
  ],
});
